package com.oop7.OldDriver;

public class Tank {

	private double power;
	private int number;

	public double getPower() {
		return power;
	}

	public void setPower(double power) {
		this.power = power;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public void start() {
		System.out.println("坦克启动");
	}

	public void climb() {
		System.out.println("坦克爬坡");
	}

	public Tank(double power, int number) {
		setPower(power);
		setNumber(number);
	}
}
